import Vue from 'vue'
import App from './App.vue'
import router from './router'
import '@/assets/iconfont/iconfont.css'
import BaiduMap, { BmlMarkerClusterer } from 'vue-baidu-map'
import { Button, Empty, DropdownMenu, DropdownItem, Cascader,Checkbox, CheckboxGroup, Uploader, Popup,Picker, Tabbar, Search, Swipe, Lazyload, SwipeItem, IndexBar, Cell, CellGroup, IndexAnchor, List, TabbarItem, NavBar, Form, Field, Toast, Grid, GridItem } from 'vant';

Vue.use(Button)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Toast)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(List)
Vue.use(Uploader)
Vue.use(Picker)
Vue.use(Empty)
Vue.use(Popup)
Vue.use(Cascader)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Search)
Vue.use(Lazyload)
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'nTy3oSIPnOtE3Mc0wabGgzfwgAZhMqZE'
})
Vue.component('bml-marker-cluster', BmlMarkerClusterer)
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
